package server

import (
	"github.com/1141520944/go-library/hjz/common"
	"github.com/gin-gonic/gin"
	"learn/k8s/internal/pkg/util"
)

func (h *Handler) podList(c *gin.Context) {
	resp := common.Resp(c)
	list, err := h.data.PodList(c)
	if err != nil {
		util.L().Errorw("[postList h.data.PodList]err", err.Error())
		resp.Msg(err.Error()).Fail()
		return
	}
	resp.Data(list).Success()
}
